<?php

class PlayerGame extends Phalcon\Mvc\Model
{
    /**
     * @var integer
     */
    public $id_player;

    /**
     * @var integer
     */
    public $id_game;

    /**
     * @var string
     */
    public $cards;

    /**
     * Relationship initialization
     */
    public function initialize()
    {
        $this->belongsTo('id_player', 'Player', 'id', array(
            'reusable' => true
            ));
        $this->belongsTo('id_game', 'Games', 'id', array(
            'reusable' => true
            ));
    }
}
